home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / t_os / gpen32k / source.exe / LIB / OSRC / OCIRCLEL.C < prev    next >
C/C++ Source or Header  |  1993-06-15  |  503b  |  30 lines

  1. /*
  2.     グラフィック標準関数
  3. */
  4.  
  5. #include    <EGB.H>
  6. #include    <Normlib.h>
  7.  
  8. extern char work[];
  9.  
  10. void circlel(int x, int y, int dx, int dy, int wm, int c )
  11. {
  12.     char pa[64];
  13.     EGB_paintMode( work, wm );
  14.     EGB_color( work, 0, c );
  15.     EGB_color( work, 2, c );
  16.     if (dx!=0 || dy!=0)
  17.     {
  18.         WORD(pa  ) = x;
  19.         WORD(pa+2) = y;
  20.         WORD(pa+4) = _abs(dx);
  21.         WORD(pa+6) = _abs(dy);
  22.         EGB_ellipse( work, pa );
  23.     }    else    {
  24.         WORD(pa  ) = 1;
  25.         WORD(pa+2) = x;
  26.         WORD(pa+4) = y;
  27.         EGB_pset( work, pa );
  28.     }
  29. }
  30.